<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>sssssssssssssss</h1>
	<h1>fffffffffffffff</h1>
	<h1>ggggggggggggggg</h1>
</body>
<script type="text/javascript">
	hidobjs=document.getElementsByTagName('h1');

for(i=0;i<hidobjs.length;i++){
	hidobjs[i].style.background='#f0f';
}

</script>
</html>